package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.Vocation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface VocationDao extends JpaRepository<Vocation,Integer> {

    Vocation findByVocationId(int vocationId);

    List<Vocation> findByParentId(int parentId);
}
